package org.java.order.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author WHQ
 * @version 1.0
 * @date 2022-3-15 0015 下午 2:59
 */
@TableName("orderDetail")
public class UserOrderDetail {
//    @TableId
    @TableId("order_detail_id")
    private Long orderDetailId;
    @TableField("order_id")
    private String orderId;
    @TableField("sku_id")
    private Long skuId;
    @TableField("sku_num")
    private Long skuNum;

    public UserOrderDetail(Long orderDetailId, String orderId, Long skuId, Long skuNum) {
        this.orderDetailId = orderDetailId;
        this.orderId = orderId;
        this.skuId = skuId;
        this.skuNum = skuNum;
    }

    public UserOrderDetail() {
    }

    public Long getOrderDetailId() {
        return orderDetailId;
    }

    public void setOrderDetailId(Long orderDetailId) {
        this.orderDetailId = orderDetailId;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public Long getSkuId() {
        return skuId;
    }

    public void setSkuId(Long skuId) {
        this.skuId = skuId;
    }

    public Long getSkuNum() {
        return skuNum;
    }

    public void setSkuNum(Long skuNum) {
        this.skuNum = skuNum;
    }
}
